package com.wx.chapter10.codeblock_;

/**
 * ClassName:CodeBlockDetail03
 * Package :com.wx.chapter10.codeblock_
 * Description :
 *
 * @Author : coder_mu
 * @Create : 2023/6/3 - 18:24
 */
public class CodeBlockDetail03 {
    public static void main(String[] args) {

    }
}

class AAA {
    {
        System.out.println("AAA 的普通代码块");
    }

    public AAA() {
        //(1)super()
        //(2)调用本类的普通代码块
        System.out.println("AAA()  构造器被调用....");
    }
}

class BBB extends AAA {
    {
        System.out.println("BBB 的普通代码块...");
    }

    public BBB() {
        //(1)super()
        //(2)调用本类的普通代码块
        System.out.println("BBB()  构造器被调用....");
    }
}